< previous page page_27 next page >

Page 27
0027-01.jpg
Figure 2.11
The interface of the Loan
Calculator program has four text boxes.
tip.gif
To draw multiple controls of the same type, hold down the Ctrl key when you select the control's tool in the Toolbox. That tool will remain selected in the Toolbox even after you've finished drawing a control. You can keep drawing multiple instances of that control without having to reselect the tool. When you're through drawing that control, select the Toolbox's pointer tool to return the mouse pointer to its normal state.

Moving and Resizing a Control
If you don't like where a control is positioned, use the mouse to drag it to a new location. If you pause while dragging it, note that the control's current position (relative to the form's top-left corner) is displayed as a ToolTip.
If you want to change the size of a control, you must first select it, which causes the sizing handles to appear. You can then use the mouse to change the control's size by dragging the sizing handles. The handles on the control's top and bottom edges change its height. The handles on the control's left and right edges change its width. The handles on the control's corners change its height and width simultaneously. Note how the sizing box described earlier appears as you're resizing the control to help you visualize the control's final size.
Now that you have created text boxes for the user's input, you should label them so that the user knows what to enter in each box. To make room for the labels, move the text boxes to the right. You could drag each text box individually; however, it is quicker to move them all together at the same time. You can easily select them all and move the entire group. To do this, click one of the text boxes to select it, and then hold down Ctrl while you click each of the others. Notice that each text box that you select in this manner gets its own set of sizing handles. After you've got them all selected, begin dragging one of them. As you drag, the entire group is dragged at once. Drop the controls on the right side of the form; when you're done, your form should look like Figure 2.12.
0027-02.jpg
Figure 2.12
Selecting multiple controls enables
you to move them together as a group.

 
< previous page page_27 next page >